﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CMSLibrary;

public partial class UControls_WUC_ADZoneID : PSControls
{
    #region 私有成员
    string classTitle = "版位:";    
    #endregion

    #region 属性    
    /// <summary>
    /// 类别名称
    /// </summary>
    public string ClassTitle
    {
        set { classTitle = value; }
    }    
    #endregion

    #region 抽象属性
    public override string Client_ClassID
    {
        get { return ddl_ADZoneID.ClientID; }
    }
    public override ListControl GetClassControl
    {
        get { return ddl_ADZoneID; }
    }
    #endregion

    #region 抽象方法
    public override void ListControl_DataBind()
    {
        lil_title.Text = classTitle;

        ddl_ADZoneID.DataSource = new DataEntity.tab_AdZone().SelectDataTable("1=1", null, null).DefaultView;
        ddl_ADZoneID.DataTextField = "adz_ZoneName";
        ddl_ADZoneID.DataValueField = "adz_ID";
        ddl_ADZoneID.DataBind();

        ddl_ADZoneID.Items.Insert(0, new ListItem("--请选择--", "0"));
    }
    #endregion
}
